
export default {
  methods: {
    // match Jira Number
    async checkJiraNumber (issueIdOrKey) {
      if (issueIdOrKey === 'NA') {
        return true
      }

      const params = {
        issueIdOrKey,
        tenantCode: this.$store.state.user.tenantCode
      }
      const { data = [] } = await this.$interface.reports.checkJiraNumber(params)

      return JSON.stringify(data) !== '[{}]' && data.length >= 1
    }
  }
}
